<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title><%=L.cw_name%><%=L.cw_power_by%></title>
    <link href="/resource/images/favicon.ico" rel="Shortcut Icon" >
    <link href="/resource/style/bootstrap.css?ver=<%=CW_VERSION%>" rel="stylesheet"/>
    <link href="/resource/style/font-awesome/css/font-awesome.css" rel="stylesheet" >
    <!-- 字体不能跨域问题 -->
    <!--[if IE 7]>
    <link rel="stylesheet" href="/resource/style/font-awesome/css/font-awesome-ie7.css">
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="/resource/style/login.css">

</head>
<body>
<div class="background" style="background-image:url('<%=wall()%>')"></div>
<div class="loginbox" >
    <div class="title">
        <div class="logo"><i class="icon-cloud"></i><%=L.cw_name%></div>
        <div class='info'>——<%=L.cw_name_desc%></div>
    </div>
    <div class="form">
        <div class="inputs">
            <div><span><%=L.username%>：</span><input id="username" name='name' type="text" placeholder="<%=L.username%>" required/> </div>
            <div><span><%=L.password%>：</span><input id="password" name='password' type="password" placeholder="<%=L.password%>" required /></div>

            <% if(code==3){%>
            <div class='check_code'>
                <span><%=L.login_code%>：</span>
                <input name='check_code' class="check_code" type="text" placeholder="<%=L.login_code%>" required /> <img src='./index.php?user/checkCode' onclick="this.src='./index.php?user/checkCode'" />
                <div style="clear:both;"></div>
            </div>
            <%}%>
        </div>
        <div class="actions">
            <input type="hidden" name="reurl" value="<%=reurl%>">
            <input type="submit" id="submit" value="<%=L.login%>" />
            <input type="checkbox" class="checkbox" name="rember_password" id='rm' checked='checked' />
            <label for='rm'><%=L.login_rember_password%></label>
        </div>
        <div class="msg"><?php echo $msg;?></div>
        <div style="clear:both;"></div>
        <div class='guest'>
            <a href="#"><%=L.ui_register%><i class=' icon-arrow-right'></i></a></div>
    </div>
</div>
<div class="common_footer"><%=L.copyright_pre%> <%=CW_VERSION%> <%-L.copyright_info%></div>

<script src="/explorer/share/commonjs"></script>
<script src="/resource/js/lib/seajs/sea.js?ver=<%=CW_VERSION%>"></script>
<script type="text/javascript">
    seajs.config({
        base:"/resource/js/",
        preload: ["lib/jquery-1.8.0.min"],
        map:[
            [ /^(.*\.(?:css|js))(.*)$/i,'$1$2?ver='+G.version]
        ]
    });
    seajs.use("/resource/js/app/src/user/main");
</script>
</body>
</html>